/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar.Elements;

/**
 *
 * @author spok
 */
import java.awt.Point;
import java.awt.Rectangle;
import plar.*;
import plar.Actions.*;

        
public class Shoot extends Element {
    
    public Shoot(int i,Rectangle p)
    {
        super(i,p);
        actions.put("collision",new Shooted(this));
    }

    public Shoot(int i,Rectangle p,Point s)
    {
        this(i,p);
        properties.put("speed",s);
    }

    public Shoot(int i,Rectangle p,Point s,Sprites ss)
    {
        this(i,p,s);
        ((Action)actions.get("show")).setSprites( ss);
    }

    public Shoot(int i,Rectangle p,Point s,Sprite ss)
    {
        this(i,p,s);
        ((Action)actions.get("show")).setSprites(new Sprites(ss));
    }

}